package entities;
import java.util.*;
public class Item {

	public static final String CD="CD";
	public static final String BOOK="Book";
	public static final String DVD="DVD";

	public static final String PUBLIC="public";
	public static final String PRIVATE="private";
	public static final String FRIENDSONLY="friends";

	public static final String inLib="IN LIBRARY";
	public static final String borrowed="BORROWED";
	public static final String loaned="LOANED";
	public static final String lost="LOST";
	public static final String unavailable="UNAVAILABLE";
	public static final String recalled="RECALLED";
	
	private String title;
	private String copyStatus;	
	private String type;
	private int userId;
  
	private int copyId;
	private int masterId;
	private int locationId;
	private String location;
	private String visible;
	private Date timeAdded;
	private Date lastChanged;
	

	public Date getLastChanged() {
		return lastChanged;
	}
	public void setLastChanged(Date lastChanged) {
		this.lastChanged = lastChanged;
	}

	private String owner;
	

	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}

	public String getOwner() {
		return owner;
	}
	public void setOwner(String owner) {
		this.owner = owner;
	}
	
	public String getLocation() {
		return location;
	}
	public void setLocation(String location) {
		if(location==null || location.trim().equals("")) return;
		
		this.location = location.toLowerCase();
	}
	
	
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		if(title==null || title.trim().equals("")) return;
		this.title = title;
	}
	public String getCopyStatus() {
		return copyStatus;
	}
	public void setCopyStatus(String copyStatus) {
		this.copyStatus = copyStatus;
	}
	public int getCopyId() {
		return copyId;
	}
	public void setCopyId(int copyId) {
		this.copyId = copyId;
	}
	public int getMasterId() {
		return masterId;
	}
	public void setMasterId(int masterId) {
		this.masterId = masterId;
	}
	public int getLocationId() {
		return locationId;
	}
	public void setLocationId(int locationId) {
		this.locationId = locationId;
	}

	public String getVisible() {
		return visible;
	}
	public void setVisible(String visible) {
		this.visible = visible;
	}
	public Date getTimeAdded() {
		return timeAdded;
	}
	public void setTimeAdded(Date timeAdded) {
		this.timeAdded = timeAdded;
	}
	public int getUserId() {
		return userId;
	}
	public void setUserId(int userId) {
		this.userId = userId;
	}
	
	
}

